package cn.goktech.sports.modules.importDataone.dao;

import cn.goktech.sports.modules.importDataone.entity.HeaderFuelEntity;
import cn.goktech.sports.modules.sys.dao.BaseMapper;
import org.apache.ibatis.annotations.Mapper;
import org.apache.ibatis.annotations.Param;

/**
 * 模板一数据
 * @author LiuHW
 */
@Mapper
public interface HeaderFuelMapper extends BaseMapper<HeaderFuelEntity> {

    /**
     * 查询当前的汇率是否存在
     */
    HeaderFuelEntity ifExistFirstInfo(@Param(value = "fuelType") String fuelType);

    Integer saveInfo(HeaderFuelEntity headerFuelEntity);

    Integer updateInfo(HeaderFuelEntity headerFuelEntity);
    /**
     * 功能描述: <br>
     * 更改燃油费率
     * @param articleTypeId 产品类型
     * @param fuelCost  费率
     * @author PanY
     * @date 2020/2/26 10:46
     * @return java.lang.Integer
     */
    Integer updateDHLRate(@Param("articleTypeId")String articleTypeId,@Param("fuelCost")String fuelCost);
}
